import request from '@/utils/request'

const talentsEvents = {
  list (params) {
    return request.get('/kjrc/talentsEvents/list', { params })
  },
  myList (params) {
    return request.get('/kjrc/talentsEvents/myList', { params })
  },
  add (formData) {
    return request.post('/kjrc/talentsEvents/add', formData)
  },
  update (formData) {
    return request.post('/kjrc/talentsEvents/update', formData)
  },
  submit (formData) {
    return request.post('/kjrc/talentsEvents/submit', formData)
  },
  getDetailData (id) {
    return request.get(`/kjrc/talentsEvents/detail/${id}`)
  },
  delete (id) {
    return request.post(`/kjrc/talentsEvents/delete/${id}`)
  },
}

export default talentsEvents;
